
_Soft_UART_Write_Text:

;util.c,11 :: 		void Soft_UART_Write_Text(char* testo) {
;util.c,13 :: 		for (cnt=0; cnt<strlen(testo); cnt++) {
	CLRF        Soft_UART_Write_Text_cnt_L0+0 
L_Soft_UART_Write_Text0:
	MOVF        FARG_Soft_UART_Write_Text_testo+0, 0 
	MOVWF       FARG_strlen_s+0 
	MOVF        FARG_Soft_UART_Write_Text_testo+1, 0 
	MOVWF       FARG_strlen_s+1 
	CALL        _strlen+0, 0
	MOVLW       128
	MOVWF       R2 
	MOVLW       128
	XORWF       R1, 0 
	SUBWF       R2, 0 
	BTFSS       STATUS+0, 2 
	GOTO        L__Soft_UART_Write_Text7
	MOVF        R0, 0 
	SUBWF       Soft_UART_Write_Text_cnt_L0+0, 0 
L__Soft_UART_Write_Text7:
	BTFSC       STATUS+0, 0 
	GOTO        L_Soft_UART_Write_Text1
;util.c,14 :: 		Soft_UART_Write(testo[cnt]);
	MOVF        Soft_UART_Write_Text_cnt_L0+0, 0 
	ADDWF       FARG_Soft_UART_Write_Text_testo+0, 0 
	MOVWF       FSR0L 
	MOVLW       0
	ADDWFC      FARG_Soft_UART_Write_Text_testo+1, 0 
	MOVWF       FSR0H 
	MOVF        POSTINC0+0, 0 
	MOVWF       FARG_Soft_UART_Write_udata+0 
	CALL        _Soft_UART_Write+0, 0
;util.c,13 :: 		for (cnt=0; cnt<strlen(testo); cnt++) {
	INCF        Soft_UART_Write_Text_cnt_L0+0, 1 
;util.c,15 :: 		}
	GOTO        L_Soft_UART_Write_Text0
L_Soft_UART_Write_Text1:
;util.c,16 :: 		}
	RETURN      0
; end of _Soft_UART_Write_Text

_UTIL_checkBattery:

;util.c,18 :: 		unsigned short UTIL_checkBattery() {
;util.c,24 :: 		ADCON0 = ADCON0|0x02;
	BSF         ADCON0+0, 1 
;util.c,25 :: 		while (ADCON0&0x02) {}
L_UTIL_checkBattery3:
	BTFSS       ADCON0+0, 1 
	GOTO        L_UTIL_checkBattery4
	GOTO        L_UTIL_checkBattery3
L_UTIL_checkBattery4:
;util.c,27 :: 		vbatt = ADRESL;
	MOVF        ADRESL+0, 0 
	MOVWF       UTIL_checkBattery_vbatt_L0+0 
	MOVLW       0
	MOVWF       UTIL_checkBattery_vbatt_L0+1 
;util.c,28 :: 		vbatt |= (ADRESH << 8);
	MOVF        ADRESH+0, 0 
	MOVWF       R1 
	CLRF        R0 
	MOVF        UTIL_checkBattery_vbatt_L0+0, 0 
	IORWF       R0, 1 
	MOVF        UTIL_checkBattery_vbatt_L0+1, 0 
	IORWF       R1, 1 
	MOVF        R0, 0 
	MOVWF       UTIL_checkBattery_vbatt_L0+0 
	MOVF        R1, 0 
	MOVWF       UTIL_checkBattery_vbatt_L0+1 
;util.c,30 :: 		normalizedVoltage = vbatt * UTIL_VbattConversionFactor;
	MOVLW       55
	MOVWF       R4 
	MOVLW       0
	MOVWF       R5 
	CALL        _Mul_16x16_U+0, 0
	CALL        _Word2Double+0, 0
;util.c,31 :: 		if (normalizedVoltage <= UTIL_minVbatt) error = 1;
	MOVF        R0, 0 
	MOVWF       R4 
	MOVF        R1, 0 
	MOVWF       R5 
	MOVF        R2, 0 
	MOVWF       R6 
	MOVF        R3, 0 
	MOVWF       R7 
	MOVLW       102
	MOVWF       R0 
	MOVLW       102
	MOVWF       R1 
	MOVLW       22
	MOVWF       R2 
	MOVLW       130
	MOVWF       R3 
	CALL        _Compare_Double+0, 0
	MOVLW       0
	BTFSC       STATUS+0, 0 
	MOVLW       1
	MOVWF       R0 
	MOVF        R0, 1 
	BTFSC       STATUS+0, 2 
	GOTO        L_UTIL_checkBattery5
	MOVLW       1
	MOVWF       UTIL_checkBattery_error_L0+0 
	GOTO        L_UTIL_checkBattery6
L_UTIL_checkBattery5:
;util.c,32 :: 		else error = 0;
	CLRF        UTIL_checkBattery_error_L0+0 
L_UTIL_checkBattery6:
;util.c,33 :: 		return error;
	MOVF        UTIL_checkBattery_error_L0+0, 0 
	MOVWF       R0 
;util.c,34 :: 		}
	RETURN      0
; end of _UTIL_checkBattery

_UTIL_initCheckBattery:

;util.c,36 :: 		void UTIL_initCheckBattery() {
;util.c,38 :: 		ADCON2 = 0xBE;
	MOVLW       190
	MOVWF       ADCON2+0 
;util.c,40 :: 		ADCON0 = ADCON0|0x01;
	BSF         ADCON0+0, 0 
;util.c,42 :: 		}
	RETURN      0
; end of _UTIL_initCheckBattery
